package org.dtrd.modules.common.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.dtrd.common.api.vo.Result;
import org.dtrd.modules.common.entity.bean.CodeDataBean;
import org.dtrd.modules.common.service.IDicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 100 通用接口
 * @Author: QR
 * @Date: 2021/9/25-16:17
 */
@RestController
@RequestMapping("/100")
@Api(tags = "通用接口")
public class DicController {

    @Autowired
    private IDicService dicService;

    @GetMapping("/11/1001101")
    @ApiOperation("查询字典数据")
    public Result<?> getEvaluationProblems() {
        CodeDataBean evaluationProblems = dicService.getDicData();
        return Result.OK(evaluationProblems);
    }
}
